﻿@model Fyp.Models.Project

@{
    Layout = "~/Shared/_layoutPage.cshtml";
    var PageTitle = "EditProject";
   
    }
@section title
{
 @PageTitle
}
<link rel="stylesheet" type="text/css" href="~/Styles/template.css" media="screen">
 <script src="../../Scripts/jquery-1.7.1.js" type="text/javascript"> </script>
<script type="text/javascript">
    $(document).ready(function () {
      
    $('#chk1').change(function(){
               
        $('input[name=chk2]').attr('checked', false);

        $('input[name=chk1]').attr('checked', true);

               
    }
             );

    $('#chk2').change(function () {

        $('input[name=chk1]').attr('checked', false);

        $('input[name=chk2]').attr('checked', true);


    }
    );
    $('#chk3').change(function () {

        $('input[name=chk4]').attr('checked', false);

        $('input[name=chk3]').attr('checked', true);


    }
   );

    $('#chk4').change(function () {

        $('input[name=chk3]').attr('checked', false);

        $('input[name=chk4]').attr('checked', true);


    }
    );
    $('#chk5').change(function () {

        $('input[name=chk6]').attr('checked', false);
        $('input[name=chk7]').attr('checked', false);
        $('input[name=chk8]').attr('checked', false);
        $('input[name=chk9]').attr('checked', false);
        $('input[name=chk5]').attr('checked', true);


    }
   );

    $('#chk6').change(function () {

        $('input[name=chk5]').attr('checked', false);
        $('input[name=chk7]').attr('checked', false);
        $('input[name=chk8]').attr('checked', false);
        $('input[name=chk9]').attr('checked', false);
        $('input[name=chk6]').attr('checked', true);


    }
    );
    $('#chk7').change(function () {

        $('input[name=chk5]').attr('checked', false);
        $('input[name=chk6]').attr('checked', false);
        $('input[name=chk8]').attr('checked', false);
        $('input[name=chk9]').attr('checked', false);
        $('input[name=chk7]').attr('checked', true);


    }
   );
    $('#chk8').change(function () {

        $('input[name=chk5]').attr('checked', false);
        $('input[name=chk7]').attr('checked', false);
        $('input[name=chk6]').attr('checked', false);
        $('input[name=chk9]').attr('checked', false);
        $('input[name=chk8]').attr('checked', true);


    }
   );
    //  cnt=c;
    });
   </script>
 <body>
   <div id="main" class = "background">
<strong>
            <div id="content"  style="margin-left: 98px;margin-bottom: -1px;">
                 <h2 style="text-align: center;">Edit Project</h2>
             </div>
    </strong>
    <table style="margin-left:50px; margin-bottom: 10px">
    
     
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
        <tr><td>
        @Html.HiddenFor(model => model.PId)
 </td></tr>
         <tr><td>
        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div></td><td>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div></td></tr>
  <tr><td>
        <div class="editor-label">
            @Html.LabelFor(model => model.AdvisorName)
        </div></td><td>
        <div class="editor-field">
            @Html.EditorFor(model => model.AdvisorName)
            @Html.ValidationMessageFor(model => model.AdvisorName)
        </div>
 </td></tr>
        <tr><td>
        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div></td><td>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>
            </td></tr>
        <tr><td>
        <div class="editor-label">
            @Html.LabelFor(model => model.Dev_Technology)
        </div></td>  <td>
         <label>Research</label></td><td>
     <input type="checkbox" value="chk1" id="chk1" name="chk1"/></td><td>
    
   
      <label>Development</label></td><td>
     <input type="checkbox" value="chk2" id="chk2" name="chk2" />
      </td></tr>
       @* <div class="editor-field">
            @Html.EditorFor(model => model.Dev_Technology)
            @Html.ValidationMessageFor(model => model.Dev_Technology)
        </div>*@
         <tr><td>
         <div class="editor-label">
            @Html.LabelFor(model => model.Type)
        </div> </td><td>
        <label>ObjectOriented</label></td><td>
     <input type="checkbox" value="ObjectOriented" id="chk3" name="chk3"/></td><td>
   
      <label>Structured</label></td><td>
     <input type="checkbox" value="Structured" id="chk4" name="chk4"/>
    
      </td></tr>
    
       @* <div class="editor-field">
            @Html.EditorFor(model => model.Type)
            @Html.ValidationMessageFor(model => model.Type)
        </div>*@
         <tr><td>
         <div class="editor-label">
            @Html.LabelFor(model => model.Plateform)
        </div></td><td>
         <label>WebBased</label></td><td>
     <input type="checkbox" value="WebBased" id="chk5" name="chk5"/></td><td>
      <label>Distributed</label></td><td>
     <input type="checkbox" value="Distributed" id="chk6" name="chk6"/></td><td>
      <label>DesktopBased</label></td><td>
     <input type="checkbox" value="DesktopBased" id="chk7" name="chk7"/></td><td>
      <label>Setup Configuration</label></td><td>
     <input type="checkbox" value="Setup Configuration" id="chk8" name="chk8"/></td><td>
      <label>Other</label></td><td>
     <input type="checkbox" value="Other" /></td></tr>
   
       @* <div class="editor-field">
            @Html.EditorFor(model => model.Plateform)
            @Html.ValidationMessageFor(model => model.Plateform)
        </div>*@
         <tr><td>
        <div class="editor-label">
            @Html.LabelFor(model => model.Status):
        </div></td><td>
             <label>Reserve</label></td><td>
        <input type="checkbox" value="Status" id="chk_stats" name="chk_stats"/>
               </td></tr>
              
           @*<div class="editor-field">
            @Html.EditorFor(model => model.ProjectStatus)
            @Html.ValidationMessageFor(model => model.ProjectStatus)
        </div>*@
        <tr><td>
        <p>
            <input type="submit" class = "buttonSave" value="Save" />
        </p>
        </td></tr>
   
}
         </table>
       </div>
         </body>
 